import datetime  
  
# 获取当前系统时间  
now = datetime.datetime.now()  
  
# 将datetime对象转换为字符串  
time_str = now.strftime("%Y-%m-%d %H:%M:%S")  
  
print(time_str)
